<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hbyj.hbm.vo.MrBaseInf"%>
<%@page import="com.hbyj.util.ChangeTool"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.hbyj.hbm.vo.Members"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Members mbInfo = (Members)request.getSession().getAttribute("SysUser");
String lyCode = "";
try{
	lyCode = mbInfo.getLyCode();
}catch(Exception e){
	 response.sendRedirect("login.jsp");
	 return;
}


int flag = ChangeTool.ChangeArea(lyCode).length();
String shengName = "";String shiName = "";String xianName = "";
String shengCode = "";String shiCode = "00";String xianCode = "00";
if(flag==2){
	shengCode = lyCode;
	shengName = ChangeTool.getFinalValue(lyCode);
}else if(flag==4){
	shengCode = lyCode.substring(0,2)+"0000";
	shengName = ChangeTool.getFinalValue(shengCode);
	shiCode = lyCode.substring(0,4)+"00";
	shiName = ChangeTool.getFinalValue(shiCode);
}else if(flag==6){
	shengCode = lyCode.substring(0,2)+"0000";
	shengName = ChangeTool.getFinalValue(shengCode);
	shiCode = lyCode.substring(0,4)+"00";
	shiName = ChangeTool.getFinalValue(shiCode);
	xianCode = lyCode;
	xianName = ChangeTool.getFinalValue(xianCode);
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/defaultStyle.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/icon.css" />
	<link rel="stylesheet" type="text/css" href="../../style/zbCss/pageTable.css" />
	<link href="../../style/zbCss/easyui_new.css" rel="stylesheet" type="text/css" />
	<link href="../../style/zbCss/icon.css" rel="stylesheet" type="text/css" />
		
 	<script type="text/javascript" src="../../lib/data.js"></script>
	<script type="text/javascript" src="../../lib/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../../lib/easyui/jquery.easyui.min_new.js" ></script>
	<script type="text/javascript"src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript"src="../../My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="../../js/util.js"></script>
	<script type="text/javascript" src="../../js/yjdcfunctiondlg/xxcx.js"></script>
	<script type="text/javascript">
	$(function(){
		setOption('china','sheng');
	 	$("#sheng").attr("disabled","disabled");
        setSltDefaultVal("sheng",<%=shengCode%>);
        changeShengItem(document.getElementById("sheng").value,'shi');
        ////初始化结果框
        initTblyjdc01();
	})
</script>
  </head>
  
  <body>
  <select style="display: none" id="sheng" onchange="changeShengItem(this.value,'shi')"><option  selected="selected" value="" >请选择省</option></select>
					
    <table class="innerStyle" style="width:98%;margin-top: 5px;margin-left: 5px">
	<tr><td>省市区划</td>
	<td><select id="shi" 	onchange="changeShiItem(this.value,'xian');">
	<option  selected="selected" value="-1">湖北省</option></select></td><td>县级区划</td><td>
	<select id="xian" ">
	<option  selected="selected" value="-1">请选择县</option></select></td></tr>
	<tr><td>调查日期（起）</td>
	<td><input class="Wdate" 
	 onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" type="text" id="sTime"/></td>
	 <td>调查日期（止）</td>
	 <td><input class="Wdate" type="text" id="eTime"  onfocus="WdatePicker({startDate:'%y-%M-30 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"  "/></td></tr>
	<tr><td colspan="4">
									<input type="button" id="queryBtn_zbry" value="查询" class="btn_2z"
										onclick="queryBtn_yjdcinfo();" />
								</td></tr>
	</table>
	<table id="tblyjdc01" ></table>
  </body>
</html>
